{% extends "!layout.html" %}

<!-- Hide left sidebar in home page -->
{% block docs_sidebar %}
  {% if pagename != 'index' %}
    {{ super() }}
  {% endif %}
{% endblock %}

<!-- Hide right sidebar in home page -->
{% block docs_toc %}
  {% if pagename != 'index' %}
    {{ super() }}
  {% endif %}
{% endblock %}

<!-- Make body have full width in home page -->
{% block docs_main %}
  {% if pagename == 'index' %}
    <main class="col-12 py-md-5 pl-md-5 pr-md-4 bd-content" role="main">
      {% block body %} {% endblock %}
    </main>
  {% else %}
    {{ super() }}
  {% endif %}
{% endblock %}
